<template>
<!--  <div>
    <div style="width:600px;margin-left: 500px">
      <el-container>
        <el-header>
          <p style="margin-left: -1520px;margin-top: -10px">卷!刷题网</p>
        </el-header>
        <el-main>
          <el-link type="primary" style="margin-left: -550px;margin-top: -140px" @click="returnIndex">返 回</el-link>
          <el-form ref="form" :model="form" label-width="80px" style="width: 400px;margin-left: 35px;margin-top: -120px">
            <el-form-item label="用户名">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="密码">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="确认密码">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="邮箱">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="性别">
              <el-radio-group v-model="form.resource">
                <el-radio label="男"></el-radio>
                <el-radio label="女"></el-radio>
              </el-radio-group>
            </el-form-item>
&lt;!&ndash;            <el-form-item label="活动区域">
              <el-select v-model="form.region" placeholder="请选择活动区域">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>&ndash;&gt;
            <el-form-item label="出生时间">
              <el-col :span="11">
                <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
              </el-col>
            </el-form-item>

            <el-form-item label="简介">
              <el-input type="textarea" v-model="form.desc"></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="onSubmit">立即注册</el-button>
              <el-button>取消</el-button>
            </el-form-item>
          </el-form>
        </el-main>
      </el-container>
    </div>
  </div>-->
</template>

<script>

export default {
  name: "register",
  data(){
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods:{
    onSubmit() {
      console.log('submit!');

      this.$axios.post("/api/login/tt").then(resp=>{
        console.log(resp)
      })
    },
    returnIndex:function (){
      this.$router.replace("/index")
    }
  }
}
</script>

<style scoped>

</style>